package com.heima.search.controller.v1;

import com.heima.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.pojo.ApAssociateWords;
import com.heima.search.service.ArticleKeywordsSearchService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 类的模板注释
 *
 * @author Mr.杨
 * @week 星期五
 * @date 2024-08-30    20:31:09
 */
@RestController
public class ArticleKeywordsSearchController {
    @Resource
    private ArticleKeywordsSearchService articleKeywordsSearchService;

    @PostMapping("/api/v1/associate/search")
    public ResponseResult<List<ApAssociateWords>> keywordsSearch(@RequestBody UserSearchDto userSearchDto) {
        return articleKeywordsSearchService.keywordsSearch(userSearchDto);
    }
}
